package org.fhm.zdte.common.standard;

import org.fhm.zdte.common.pojo.Address;

/**
 * The interface <b>IChannelDispatcher<b/>'s implementation is used to obtain channel manager by Packet-Message.
 *
 * @author 谭波
 * @since 2024/4/7
 */
public interface IChannelDispatcher {

    /**
     * Obtain channel manager by Packet-Message.
     *
     * @param address The address of target.
     * @return {@link IChannelManager}
     */
    IChannelManager obtainChannelManager(Address address);

    /**
     * Close all channels.
     */
    void closeAllChannelManager();

}
